<?php

namespace app\xwam\controller;

/**
 * Description of SystemConfController
 *
 * @version 1.0 2015-10-20 SoChishun(14507247@qq.com) Added.
 * @version 2.0 2016-6-15 SoChishun Config拆分为SystemConf和CustomConf
 * @version 2.1 2016-8-22 SoChishun SystemConf重命名为SysSystemDict
 */
class Systemconf extends AppbaseController {

    protected $confModel;

    protected function initialize() {
        parent::initialize();
        $this->confModel = new \app\xwam\model\SystemConfModel();
    }

    function index() {
        $list = $this->confModel->getListInGroup();
        return view('', ['tabs' => $list]);
    }

    public function save_edit() {
        $data = $this->request->post();
        $this->confModel->saveRecords($data);
        session('conf', $this->confModel->getConfData());
        $this->dialogJump(true);
    }

}
